package cn.zcy.configuration;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.io.support.PropertiesLoaderUtils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

@SpringBootApplication
public class ConfigurationFileApplication {

    public static void main(String[] args) throws IOException {
//        Properties properties1=new Properties();
//        InputStream is = ConfigurationFileApplication.class.getClassLoader().getResourceAsStream("app.properties");
//        properties1.load(is);
        SpringApplication springApplication = new SpringApplication(ConfigurationFileApplication.class);
        Properties properties = PropertiesLoaderUtils.loadAllProperties("app.properties");
        springApplication.run(args);
    }

}
